package com.tea.feign;


import com.tea.common.dto.TeaAddDto;
import com.tea.common.vo.R;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "TeaLeafUserServer",contextId = "tealeaf")
public interface TeaLeafService {
    @PostMapping("/server/tealeaf/add.do")
    R add(@RequestBody TeaAddDto dto);
    @GetMapping("/server/tealeaf/select.do")
    R select(@RequestParam int tgid);
}
